package data.preprocessing;
/**
 * mark the suspension point in the string
 * 
 * @author liu xiao
 * 
 */
public class StringProcessor_SuspensionPoint implements StringProcessor{

	public String map(String str) {
		str = str.replaceAll("(\\.){2,}"," SUSPENSION_POINT ");
//		System.out.print(" suspension:"+str);
		return str;
	}

	public static void main(String args[]){
		String text = "... jdifjidf .";
		System.out.println((new StringProcessor_SuspensionPoint()).map(text));
	}
}
